package com.citycloud.ccuap.tc.sync.dto;

import com.citycloud.ccuap.commons.sys.entity.SysDistrict;
import lombok.Data;

/**
 * @author zhangxu
 * @create 2020/7/13
 * Description:
 */
@Data
public class SysDistrictMessageDTO {
    private static final long serialVersionUID = 1L;

    private Long districtId;

    private String districtNo;

    private String districtName;

    private Long pid;

    private Short poltype;

    private Long orderNo;

    private String remark;

    public SysDistrictMessageDTO build(SysDistrict sysDistrict) {
        this.districtId = sysDistrict.getDistrictId();
        this.districtNo = sysDistrict.getDistrictNo();
        this.districtName = sysDistrict.getDistrictName();
        this.pid = sysDistrict.getPid();
        this.poltype = sysDistrict.getPoltype();
        this.orderNo = sysDistrict.getOrderNo();
        this.remark = sysDistrict.getRemark();
        return this;
    }
}
